import api from './api';

// 用户相关API
export const userService = {
  // 获取所有用户
  getAllUsers: () => api.get('/users'),
  
  // 根据ID获取用户
  getUserById: (id) => api.get(`/users/${id}`),
  
  // 创建用户
  createUser: (userData) => api.post('/users', userData),
  
  // 更新用户
  updateUser: (id, userData) => api.put(`/users/${id}`, userData),
  
  // 删除用户
  deleteUser: (id) => api.delete(`/users/${id}`),
};
